home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / NetworkManager / dispatcher.d / 60-ttdnsd.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2012-08-03  |  224 b   |  15 lines

  1. #! /bin/sh
  2.  
  3. # Run only when the interface is not "lo":
  4. if [ $1 = "lo" ]; then
  5.    exit 0
  6. fi
  7.  
  8. # Run whenever an interface gets "up", not otherwise:
  9. if [ $2 != "up" ]; then
  10.    exit 0
  11. fi
  12.  
  13. # Restart ttdnsd
  14. service ttdnsd restart
  15.